m = 1
for i in range(1, 10):
    for j in range(1, i+1):
        m = j*i
        if j != i:
            print('%d*%d=%d' % (j, i, m), end=' ')
        else:
            print('%d*%d=%d' % (j, i, m))




        # for k in range(1, j):
        #     a = j * i
        #     if k == j:
        #         print('%d*%d=%d' % (i, j, a))
        #         break
        #     else:
        #         print('%d*%d=%d' % (i, j, a),end='')
